package lab_01;

public class Test_04 {
    public static void main(String[] args) {
        //for循环
        int a = 0;
        for (int i = 1; i <=100 ; i++) {
            a = a + i;
        }
        System.out.println(a);

        //while循环
        int j = 1;
        int h = 0;
        while (j <=100){
            h = h + j;
            j++;
        }
        System.out.println(h);

        //vhile do

    }
}
